<template>
  <div class="consultpart sortPage">
    <reportBar></reportBar>
    <swiperDom :banners="banners"></swiperDom>
     <news-list v-if="list.dc " :title="newsTitle.dc" :list="list.dc"></news-list>
    <news-list v-if="list.tcl" :title="newsTitle.tcl" :list="list.tcl"></news-list>
   
    <news-list v-if="list.dlg " :title="newsTitle.dlg" :list="list.dlg"></news-list>
  </div>
</template>
<script type="text/ecmascript-6">
import { report } from "../../api/replay.js";
import { newsTitle } from "../../assets/data/menuData.js";
import NewsList from "../../components/newslist/reportFooter";
import swiperDom from "../../components/siwperDom";
import reportBar from "../../components/nav/reportBar";
export default {
  data() {
    return {
      search: "",
      list: {},
      newsTitle,
      banners: this.$store.state.indexData.banner
    };
  },
  components: {
    NewsList,
    swiperDom,
    reportBar
  },
  methods: {
    onSearch() {},
    getindexreportdata() {
      report().then(res => {
 
        if (res.code == "0000") {
          this.list = res.data;
        }
      });
    }
  },
  created() {
    this.getindexreportdata();
  }
};
</script>
 
